package org.thinktube.domani
{
	import flash.display.Sprite;
	
	public class Background extends Sprite
	{
		private var foo:Sprite;
		
		public static const newX:int = 0;
		public static const newY:int = 0;
		public static const newWidth:int = 100;
		public static const newHeight:int = 100;
		public static const newColor:uint = 0x666666;
		
		
		public function Background(_x:int = newX ,_y:int = newY,_width:int = newWidth,_height:int = newHeight ,_color:uint = newColor )
		{
			foo = draw(_x,_y,_width,_height,_color);
			this.addChild(foo);
		}
		private function draw(_x:int,_y:int ,_width:int ,_height:int,_color:uint):Sprite
		{
			var background:Sprite = new Sprite();
			background.graphics.beginFill(_color,1);
			background.graphics.drawRect(_x, _y, _width, _height);
			background.graphics.endFill();
			return background;
		}
		
	}
}